<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class AddBusinessIdToOpenShopUploadFileResourceTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('open_shop_upload_file_resource', function (Blueprint $table) {
            $table->unsignedBigInteger('businessId')->default(0)->comment('关联业务id')->after('orderNo');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('open_shop_upload_file_resource', function (Blueprint $table) {
            $table->dropColumn('businessId');
        });
    }
}
